n = int(input())

for i in range(n+1):
    print(f'pow(3,{i}) = {pow(3,i)}')